package com.demo.bean9001.controller.user;

import com.demo.bean9001.service.user.UserService;
import com.demo.common.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 用户
 * 作者：张佑威
 * 插入数据：张佑威
 * 架构搭建：张佑威
 */
@RestController
@RequestMapping("/User")
public class UserController {
    @Autowired
    private UserService hdAddressService;
    @RequestMapping("/selectAll")
    public List<User> selectAll(){
        return hdAddressService.selectAll();
    }
}
